//---------------------------------------------------------------------
//  This file is part of the Background Motion solution.
// 
//  Copyright (C) Mindscape (TM).  All rights reserved.
//  http://www.mindscape.co.nz
// 
//  THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//  PARTICULAR PURPOSE.
//---------------------------------------------------------------------

using Microsoft.Practices.EnterpriseLibrary.Validation;

namespace Mindscape.BackgroundMotion.Core.Model
{
  /// <summary>
  /// A contract which allows an entity to describe that it is self validating
  /// </summary>
  public interface ISelfValidating
  {
    /// <summary>
    /// Validates the entity
    /// </summary>
    /// <param name="results">The validation results which detail any issues found during validation.</param>
    void Validate(ValidationResults results);
  }
}